package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.domain.CencesNewsJoke;
import com.lebang.example.CencesNewsJokeExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * CencesNewsJokeMapper继承基类
 */
@Mapper
public interface CencesNewsJokeMapper extends MyBatisBaseDao<CencesNewsJoke, Integer, CencesNewsJokeExample> {

    CencesNewsJoke sumData(@Param("star") Integer star, @Param("end") Integer end, @Param("appStore") String appStore, @Param("category") int category, @Param("type") int type, @Param("configId") Integer configId, @Param("likeBrand") String likeBrand, @Param("appId") Integer appId);

    @DataSource("commonDB")
    int insertAll(CencesNewsJoke cencesNewsJoke);

}